how to solve exponential equations that can be converted to quadratic equations